package com.stormrage.entity.shiro;

import java.io.Serializable;

import com.stormrage.entity.ent.EntRes;

/**
 * @author www.stormragetech.com
 * @date 2016年3月30日
 * @version 1.0.0
 */
public class ShiroRes implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 57800151688838464L;

	// ------------------------------- Fields -------------------------------

	private String id;

	private String res;

	// ------------------------------- Fields -------------------------------

	public ShiroRes() {
	}

	// ------------------------------- Fields -------------------------------

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}

	// ------------------------------- Fields -------------------------------

	public static ShiroRes instance(EntRes arg0) {
		ShiroRes entity = new ShiroRes();
		entity.setId(String.valueOf(arg0.getId()));
		entity.setRes(arg0.getRes());
		return entity;
	}

}
